用ssh tunnel連線至內部網路

Author Avatar
Sakamoto 10月 16, 2017

http://nerderati.com/2011/03/17/simplify-your-life-with-an-ssh-config-file/

1
2
3
4
5
Host [hostname]
HostName database.example.com
IdentityFile ~/.ssh/database.example.com
LocalForward 9906 127.0.0.1:3306
User coolio
1
ssh -f -N [hostname]